func _ready():
	pass

func addTr(TextObject):
	var Chinese = Translation.new()
	Chinese.locale = "zh_CN"
	var English = Translation.new()
	English.locale = "en"
	var Japanese = Translation.new()
	Japanese.locale = "ja"

	for trans in [Chinese, English, Japanese]:
		var locale = trans.locale
		for key in TextObject.keys():
			trans.add_message(key, TextObject[key][locale])
		TranslationServer.add_translation(trans)

func _init():
	addTr({
		"SETTEXT_1":{
			"zh_CN": "mod配置",
			"en": "mod configuration",
			"ja": "mod設定"
		},
		"SETTEXT_2":{
			"zh_CN": "mod内部配置",
			"en": "mod internal configuration",
			"ja": "mod内部設定"
		},
		"SETTEXT_3":{
			"zh_CN": "杂货铺mod配置",
			"en": "Grocery store mod configuration",
			"ja": "雑貨屋mod配置"
		},
		"SETTEXT_4":{
			"zh_CN": "配置",
			"en": "Configuration",
			"ja": "設定"
		},
		"SETTEXT_5":{
			"zh_CN": "提示板",
			"en": "Cue board",
			"ja": "キューボード"
		},
		"SETTEXT_6":{
			"zh_CN": "霸道模式",
			"en": "Overbearing Mode",
			"ja": "オーバーベアリングモード"
		},
		"SETTEXT_7":{
			"zh_CN": "救援契约",
			"en": "Rescue contract",
			"ja": "救助契約"
		},
		"SETTEXT_6_1":{
			"zh_CN": "紧急支援",
			"en": "Emergency support",
			"ja": "緊急支援"
		},
		"SETTEXT_7_1":{
			"zh_CN": "团灭战败保护已开启",
			"en": "The protection of the defeat of the group is turned on",
			"ja": "グループの敗北の保護がオンになっています"
		},
		"SETTEXT_7_2":{
			"zh_CN": "\n每次保护生效，玩家减少5%的初始最大生命值",
			"en": "\nEvery time the protection takes effect, the player's initial maximum health is reduced by 5%",
			"ja": "\n保護が有効になるたびに、プレイヤーの初期の最大体力が5%減少します"
		},
		"SETTEXT_7_3":{
			"zh_CN": "\n玩家点数获取速率下降70%，杂货铺部分功能失效",
			"en": "\nThe player's point acquisition rate has decreased by 70%, and some functions of the Grocery Store are invalid",
			"ja": "\nプレイヤーのポイント獲得率が70％低下し、雑貨屋の一部の機能が無効になりました"
		},
		"SETTEXT_8":{
			"zh_CN": "杂货铺",
			"en": "Grocery Store",
			"ja": "雑貨屋"
		},
		"SETTEXT_9":{
			"zh_CN": "最大天赋数：",
			"en": "Max number of talents: ",
			"ja": "才能の最大数："
		},
		"SETTEXT_10":{
			"zh_CN": "本模式下，玩家无法获得点数，且仅能使用本模式提供的生物，非本模式提供的装备和生物都会被清除",
			"en": "In this mode, players cannot get points and can only use the creatures provided in this mode. Equipment and creatures not provided in this mode will be cleared",
			"ja": "このモードでは、プレイヤーはポイントを獲得できず、このモードで提供されたクリーチャーのみを使用できます。このモードで提供されていない装備とクリーチャーはクリアされます。"
		},
		"SETTEXT_11":{
			"zh_CN": "图标按钮",
			"en": "Icon Button",
			"ja": "アイコンボタン"
		},
		"SETTEXT_12":{
			"zh_CN": "说明",
			"en": "Description",
			"ja": "説明"
		},
		"SETTEXT_13":{
			"zh_CN": "防检测",
			"en": "Anti-detection",
			"ja": "アンチ検出"
		},
		"SETTEXT_14":{
			"zh_CN": "错误！！！",
			"en": "error! ! !",
			"ja": "エラー！ ！ ！"
		},
		"SETTEXT_15":{
			"zh_CN": "请在战斗中使用",
			"en": "Please use in battle",
			"ja": "バトルでご利用ください"
		},
		"g_kill":{
			"zh_CN": "杀敌",
			"en": "Kills",
			"ja": "敵を殺す"
		},
		"g_hp":{
			"zh_CN": "生命值",
			"en": "HP",
			"ja": "生命値"
		},
		"g_dod":{
			"zh_CN": "闪避",
			"en": "Evasion",
			"ja": "回避"
		},
		"g_spd":{
			"zh_CN": "攻速",
			"en": "Attack Speed",
			"ja": "攻撃速度"
		},
		"g_cd":{
			"zh_CN": "冷却",
			"en": "Skill time Reduced",
			"ja": "技能時間短縮"
		},
		"g_atkRan":{
			"zh_CN": "攻击范围",
			"en": "Attack Range",
			"ja": "攻撃範囲"
		},
		"g_cri":{
			"zh_CN": "暴击",
			"en": "Crit Chance",
			"ja": "ぼうげき率"
		},
		"g_criR":{
			"zh_CN": "暴伤",
			"en": "Crit Damage",
			"ja": "クリティカルダメージ"
		},
		"g_atk":{
			"zh_CN": "物理强度",
			"en": "Physical Attack",
			"ja": "物理攻撃"
		},
		"g_mgiAtk":{
			"zh_CN": "法术强度",
			"en": "Magic Power",
			"ja": "魔法の強さ"
		},
		"g_def":{
			"zh_CN": "物理抗性",
			"en": "Physical Defense",
			"ja": "物理防御"
		},
		"g_mgiDef":{
			"zh_CN": "法术抗性",
			"en": "Magic Defense",
			"ja": "魔法の防御"
		},
		"g_suckpen":{
			"zh_CN": "物理吸血|穿透|穿透率",
			"en": "Physical Vamp|Penetration|Penetration Percentage",
			"ja": "物理吸血|物理的透過|物理的透過率"
		},
		"g_mgiSuckpen":{
			"zh_CN": "法术吸血|穿透|穿透率",
			"en": "Magic Vamp/Penetration|Penetration Percentage",
			"ja": "吸血術|術が突き抜ける|術の浸透率"
		},
		"g_atkRdefR":{
			"zh_CN": "增伤|减伤",
			"en": "Damage increase|Damage reduction",
			"ja": "ダメージ増加|ダメージ軽減"
		},
		"g_heal":{
			"zh_CN": "生命上限|承疗",
			"en": "Max HP|Healing Received",
			"ja": "生命の上限|治療効果"
		},
		"GST_1":{
			"zh_CN": "杂货铺MOD：",
			"en": "Grocery Store MOD：",
			"ja":"雑貨屋MOD："
		},
		"GST_2":{
			"zh_CN": "排序工具启动中......",
			"en": "The sorting tool is starting...",
			"ja":"並べ替えツールが起動しています..."
		},
		"GST_3":{
			"zh_CN": "已启动同类型工具，本次启动无效",
			"en": "The same type of tool has been started, this time the start is invalid",
			"ja": "同じタイプのツールが開始されましたが、今回は開始が無効です"
		},
		"GST_4":{
			"zh_CN": "排序工具启动完毕",
			"en": "Sorting tool started",
			"ja": "ソートツールが開始されました"
		},
		"GST_5":{
			"zh_CN": "文件缺失，排序工具启动失败",
			"en": "File is missing, the sort tool failed to start",
			"ja": "ファイルがありません、ソートツールを起動できませんでした"
		},
		"g_Battletext_1":{
			"zh_CN": "恭喜通关",
			"en": "Congratulations on clearing",
			"ja": "クリアおめでとうございます"
		},
		"g_Battletext_2":{
			"zh_CN": "通关奖励已发放",
			"en": "Customs clearance rewards have been issued",
			"ja": "通関特典が発行されました"
		},
		"g_shopupdate_1":{
			"zh_CN": "更新奖励已发放",
			"en": "Update reward has been issued",
			"ja": "更新報酬が発行されました"
		},
		"g_itembuy":{
			"zh_CN": "购买",
			"en": "Buy",
			"ja": "購入"
		}
	})